package com.youxin.foundation.data.spark;

/**
 * Spark Streaming配置类
 * @author yingde.cao
 *
 */
public class SparkConfigBean {
	private String master;
	private long duration;
	private final long MIN_DURATION=1000L;
	public String getMaster() {
		return master;
	}
	public void setMaster(String master) {
		this.master = master;
	}
	
	public long getDuration() {
		if(duration<MIN_DURATION)
		{
			duration=MIN_DURATION;
		}
		return duration;
	}
	
	public void setDuration(long duration) {
		this.duration = duration;
	}
	
	
	
}
